def generator():
  while True:
    for i in range(5):
        n = i
        print(i)
        receive=yield 1
        print('extra'+str(receive), n, i)
    


g=generator()
print(next(g))
print(g.send(111))
#print(next(g))
 